import axios from 'axios';
export const cities = (params) => axios({
    url: `https://elm.cangdu.org/v1/cities?type=${params}`,

})
export const citier = (params) => axios({
    url: `https://elm.cangdu.org/v1/cities?type=${params}`,

})
export const citiers = (params) => axios({
    url: `https://elm.cangdu.org/v1/cities?type=${params}`,

})
//城市接口
export const citiesid = (id) => axios({
    url: `https://elm.cangdu.org/v1/cities/${id}`,

})
//搜索地址
export const pois = (id, keyword,) => axios({
    url: `https://elm.cangdu.org/v1/pois?city_id=${id}&keyword=${keyword}&type=search`,

})
//搜索商家
export const restaurants = (geohash, keyword) => axios({
    url: `https://elm.cangdu.org/v4/restaurants?geohash=${geohash}&keyword=${keyword}`,

})
